Anti-Virus - Clamav
2011/03/14 |
Install Clam AntiVirus to protect from virus. |
|
[1] | Install Clamav |
[root@mail ~]# yum --enablerepo=rpmforge -y install clamav # install from RPMforge [root@mail ~]# vi /etc/freshclam.conf # line 122: make it comment # NotifyClamd /etc/clamd.conf[root@mail ~]# freshclam # update pattern files ClamAV update process started at Mon Mar 14 22:51:36 2011 main.cvd is up to date (version: 53, sigs: 846214, f-level: 53, builder: sven) daily.cvd is up to date (version: 12834, sigs: 72593, f-level: 60, builder: neo) bytecode.cvd is up to date (version: 142, sigs: 40, f-level: 60, builder: acab) |
[2] | Try to scan |
[root@mail ~]# clamscan --infected --remove --recursive /home ----------- SCAN SUMMARY ----------- Known viruses: 917533 Engine version: 0.97 Scanned directories: 2 Scanned files: 3 Infected files: 0 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 2.451 sec (0 m 2 s) # try to download trial virus [root@mail ~]# wget http://www.eicar.org/download/eicar.com [root@mail ~]# clamscan --infected --remove --recursive . ./eicar.com: Eicar-Test-Signature FOUND ./eicar.com: Removed. # just detected ----------- SCAN SUMMARY ----------- Known viruses: 917533 Engine version: 0.97 Scanned directories: 1 Scanned files: 12 Infected files: 1 Data scanned: 0.02 MB Data read: 0.01 MB (ratio 2.00:1) Time: 2.425 sec (0 m 2 s) |